//
// Created by fazhehy on 2024/5/12.
//

#ifndef COMMON_INC_H
#define COMMON_INC_H

#include <stdbool.h>

#include "stm32f1xx_hal.h"
#include "usbd_cdc_if.h"
#include "usart.h"
#include "spi.h"
#include "tim.h"
#include "adc.h"

#include "nrf24l01.h"
#include "retarget.h"
#include "st7789.h"
#include "voltage.h"
#include "key.h"
#include "menu.h"
#include "protocol.h"
#include "flash.h"

typedef struct {
    int16_t speed;
    float p;
    float i;
    float d;
}servo_param_t;

#include "task.h"
#include "task_outdoor_kun.h"
#include "task_outdoor_precise.h"
#include "task_indoor_precise.h"
#include "task_indoor_kun.h"

extern uint32_t start;

void Main();

#endif //COMMON_INC_H
